//
//  ViewController.m
//  SPToolDemo
//
//  Created by zhagnshupeng on 2017/10/31.
//  Copyright © 2017年 SP. All rights reserved.
//

#import "ViewController.h"
#import "APPAddressBook.h"
#import <NerdyUI.h>
#import <SKTableSwipview.h>
#import <SPDefine.h>
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
//    APPAddressBook *address = [[APPAddressBook alloc] init];
//    [address allInfo];
    SKTableSwipview *swipeView = [[SKTableSwipview alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight - (NAVIGATION_HEIGHT_X) - (Bottom_X))];
    [swipeView.tableView registerClassArray:@[@"SKBaseTableViewCell"]];
    swipeView.cellIdentify = ^NSString *(NSIndexPath *indexPath) {
        return @"SKBaseTableViewCell";
    };
    
    swipeView.cellDidload = ^(SKBaseTableViewCell *cell, NSIndexPath *indexPath) {
        cell.textLabel.text = @"11";
        cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    };
    swipeView.clickItem = ^(SKBaseTableView *tableView, NSIndexPath *indexPath) {
        
    };
    
    [self.view addSubview:swipeView];
    [swipeView.tableView.dataModel addDataArray:@[@"1",@"2"] atSection:0];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
